package com.chao.controller;

import com.alibaba.fastjson2.JSONObject;
import com.chao.vo.Person;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LUCK CHAO
 * @date 2024/01/18
 */
@Slf4j
@RestController
@Api(value = "联通性测试接口页", tags = "联通性测试接口页")
public class WebController {


    @PostMapping(value = "/1")
    public String testConnection(@RequestBody Person person) {
        log.info("Test connection successful");
        return JSONObject.toJSONString(person);
    }
}
